<?php

class DummyClass {
	
	public function __construct(){
		$this->id = -1;
		$this->on = 0;		//开关
		$this->name = "空实现技能类";
		$this->time = 0;	//持续回合数，99即作为永久
		$this->n = 0;		//当前进行次数
	}
	
	public function checkex($a) {
		if(isset($this->excid) && in_array($a->cid,$this->excid)) {
			$this->name = "<font color=blue>EX".$this->name."</font>";
			$this->ex = 1;
			$this->exskset();
		}
	}

	public function exskset() {
		return 1;
	}

	public function start($a,$b,$atkid,$defid,$defer) {		
		$this->checkex($a[$atkid]);
		$sk = clone $this;
		CalHelper::cost_cal($a[$atkid],$sk);
		$sk->action($a[$atkid],$defer);		
	}
	
	public function action($a) {				
		return 0;
	}
	
}

class FireGuardKill extends DummyClass {
	
	public function __construct(){
		$this->id = 382;
		$this->on = 0;		//开关
		$this->name = "火炎ガードキル";
		$this->time = 3;	//持续回合数，99即作为永久

		$this->hp = 0;			//消耗
		$this->sp = 50;
		$this->ap = 4;
		$this->excid = array(126,148,183);
	}

	public function exskset() {
		$this->sp = 60;
	}

	public function action($a,$b) {
		if($a->cid == 2) {
			$_SESSION['show'] .= "尘归尘 土归土 幻归幻<br>接下来你将要面对的是真实之炎<br>";
		}
		$_SESSION['show'] .= $a->name."对".$b->name."发动".$this->name."<br>";
		if($this->ex == 1) {
			StatusHelper::exguardkill($b,89,31,$this);
		} else {
			StatusHelper::dummies($b,30,$this->name,$this->time);
		}
	}

}

class IceGuardKill extends DummyClass {
	
	public function __construct(){
		$this->id = 383;
		$this->on = 0;		//开关
		$this->name = "氷結ガードキル";
		$this->time = 3;	//持续回合数，99即作为永久

		$this->hp = 0;			//消耗
		$this->sp = 50;
		$this->ap = 4;
		$this->excid = array(20);
	}

	public function exskset() {
		$this->sp = 60;
	}

	public function action($a,$b) {
		$_SESSION['show'] .= $a->name."对".$b->name."发动".$this->name."<br>";
		if($this->ex == 1) {
			StatusHelper::exguardkill($b,89,32,$this);
		} else {
			StatusHelper::dummies($b,31,$this->name,$this->time);
		}
	}

}

class WindGuardKill extends DummyClass {
	
	public function __construct(){
		$this->id = 384;
		$this->on = 0;		//开关
		$this->name = "疾風ガードキル";
		$this->time = 3;	//持续回合数，99即作为永久

		$this->hp = 0;			//消耗
		$this->sp = 50;
		$this->ap = 4;
		$this->excid = array(71,78);
	}

	public function exskset() {
		$this->sp = 60;
	}

	public function action($a,$b) {
		$_SESSION['show'] .= $a->name."对".$b->name."发动".$this->name."<br>";
		if($this->ex == 1) {
			StatusHelper::exguardkill($b,90,33,$this);
		} else {
			StatusHelper::dummies($b,32,$this->name,$this->time);
		}
	}

}

class ThunderGuardKill extends DummyClass {
	
	public function __construct(){
		$this->id = 385;
		$this->on = 0;		//开关
		$this->name = "電撃ガードキル";
		$this->time = 3;	//持续回合数，99即作为永久

		$this->hp = 0;			//消耗
		$this->sp = 50;
		$this->ap = 4;
		$this->excid = array(151);
	}

	public function exskset() {
		$this->sp = 60;
	}

	public function action($a,$b) {
		$_SESSION['show'] .= $a->name."对".$b->name."发动".$this->name."<br>";
		if($this->ex == 1) {
			StatusHelper::exguardkill($b,91,34,$this);
		} else {
			StatusHelper::dummies($b,33,$this->name,$this->time);
		}
	}

}

class EarthGuardKill extends DummyClass {
	
	public function __construct(){
		$this->id = 386;
		$this->on = 0;		//开关
		$this->name = "地变ガードキル";
		$this->time = 3;	//持续回合数，99即作为永久

		$this->hp = 0;			//消耗
		$this->sp = 50;
		$this->ap = 5;
		$this->excid = array(153);
	}

	public function exskset() {
		$this->sp = 60;
	}

	public function action($a,$b) {
		$_SESSION['show'] .= $a->name."对".$b->name."发动".$this->name."<br>";
		if($this->ex == 1) {
			StatusHelper::exguardkill($b,92,35,$this);
		} else {
			StatusHelper::dummies($b,34,$this->name,$this->time);
		}
	}

}

class FireWall extends DummyClass {
	
	public function __construct(){
		$this->id = 387;
		$this->on = 0;		//开关
		$this->name = "紅蓮の壁";
		$this->time = 2;	//持续回合数，99即作为永久

		$this->hp = 0;			//消耗
		$this->sp = 70;
		$this->ap = 5;
	}

	public function action($a,$b) {
		$_SESSION['show'] .= $a->name."对".$b->name."发动".$this->name."<br>";
		StatusHelper::dummies($b,35,$this->name,$this->time);
	}

}

class IceWall extends DummyClass {
	
	public function __construct(){
		$this->id = 388;
		$this->on = 0;		//开关
		$this->name = "銀氷の壁";
		$this->time = 2;	//持续回合数，99即作为永久

		$this->hp = 0;			//消耗
		$this->sp = 70;
		$this->ap = 5;
	}

	public function action($a,$b) {
		$_SESSION['show'] .= $a->name."对".$b->name."发动".$this->name."<br>";
		StatusHelper::dummies($b,36,$this->name,$this->time);
	}

}

class ThunderWall extends DummyClass {
	
	public function __construct(){
		$this->id = 389;
		$this->on = 0;		//开关
		$this->name = "雷電の壁";
		$this->time = 2;	//持续回合数，99即作为永久

		$this->hp = 0;			//消耗
		$this->sp = 70;
		$this->ap = 5;
	}

	public function action($a,$b) {
		$_SESSION['show'] .= $a->name."对".$b->name."发动".$this->name."<br>";
		StatusHelper::dummies($b,37,$this->name,$this->time);
	}

}

class WindWall extends DummyClass {
	
	public function __construct(){
		$this->id = 390;
		$this->on = 0;		//开关
		$this->name = "疾風の壁";
		$this->time = 2;	//持续回合数，99即作为永久

		$this->hp = 0;			//消耗
		$this->sp = 70;
		$this->ap = 5;
	}

	public function action($a,$b) {
		$_SESSION['show'] .= $a->name."对".$b->name."发动".$this->name."<br>";
		StatusHelper::dummies($b,38,$this->name,$this->time);
	}

}

class EarthWall extends DummyClass {
	
	public function __construct(){
		$this->id = 391;
		$this->on = 0;		//开关
		$this->name = "大地の壁";
		$this->time = 2;	//持续回合数，99即作为永久

		$this->hp = 0;			//消耗
		$this->sp = 70;
		$this->ap = 5;
	}

	public function action($a,$b) {
		$_SESSION['show'] .= $a->name."对".$b->name."发动".$this->name."<br>";
		StatusHelper::dummies($b,39,$this->name,$this->time);
	}

}

class LightWall extends DummyClass {
	
	public function __construct(){
		$this->id = 553;
		$this->on = 0;		//开关
		$this->name = "光の壁";
		$this->time = 2;	//持续回合数，99即作为永久

		$this->hp = 0;			//消耗
		$this->sp = 85;
		$this->ap = 6;
	}

	public function action($a,$b) {
		$_SESSION['show'] .= $a->name."对".$b->name."发动".$this->name."<br>";
		StatusHelper::dummies($b,93,$this->name,$this->time);
	}

}

class DarkWall extends DummyClass {
	
	public function __construct(){
		$this->id = 554;
		$this->on = 0;		//开关
		$this->name = "闇の壁";
		$this->time = 2;	//持续回合数，99即作为永久

		$this->hp = 0;			//消耗
		$this->sp = 85;
		$this->ap = 6;
	}

	public function action($a,$b) {
		$_SESSION['show'] .= $a->name."对".$b->name."发动".$this->name."<br>";
		StatusHelper::dummies($b,94,$this->name,$this->time);
	}

}

?>
